/*
 * @Description: 吃包子测试类
 * 
 * @Author: rendc
 * 
 * @Date: 2024-10-11 15:04:16
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2024-10-11 15:08:25
 */

/**
 * Test02BaoZi
 */
public class Test02BaoZi {

  public static void main(String[] args) {
    // 创建包子对象
    BaoZi bao = new BaoZi();
    // 创建线程对象
    // 生产者
    Thread t1 = new Producer(bao, "生产者");
    // 消费者
    Thread t2 = new Customer(bao, "消费者");
    // 启动线程
    t1.start();
    t2.start();
  }
}